<?php
require('db.php');

$data=json_decode(file_get_contents('php://input'));
$result = mysql_query("INSERT INTO leerling (internnummer, naam, voornaam, email, klas, schooljaar) VALUES ('$data->internnummer', '$data->naam', '$data->voornaam', '$data->email', '$data->klas', '$data->schooljaar')") or die (mysql_error());

?>